<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	company		= Request("company")
	owner		= Request("owner")
	phone		= Request("phone")
	fax			= Request("fax")
	major		= Request("major")
	cellPhone	= Request("cellPhone")
	compNo		= Request("compNo")
	compPart		= Request("compPart")
	compType		= Request("compType")
	memo		= Request("memo")
	flag		= Request("flag")
	addr		= Request("addr")
	compCd		= Request("compCd")
	issueId		= Request.Cookies("S_uid")
	If issueId = "" Then issueId = "tmpJade" End If 
	If compCd = "" Then compCd = 0 End If 

	company		= Replace(company,"'","''")
	addr		= Replace(addr,"'","''")
	major		= Replace(major,"'","''")
	memo		= Replace(memo,"'","''")

	SQLTitle = "-- ■■■■ 거래처 관리 저장 ■■■■"
	SQL = "exec spCompany '" & company & "', '" & owner & "', '" & phone & "', '" & fax & "', '" & major & "', '" & cellPhone & "', '" & compNo & "','" & compPart & "','" & compType & "', '" & memo & "', '" & flag & "', '" & issueId & "', " & compCd & ",'" & addr & "'"

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
%>